import { post,get } from '../../utils/request';

/**
 * 登录接口
 * @param data 登录信息
 * @returns Promise
 */
export const login = (data: { phone: string; password: string }) => {
  return post('home/PostLogin', data);
};

/**
 * 登出接口
 * @returns Promise
 */
export const logout = () => {
  return post('auth/logout');
};

/**
 * 获取用户信息
 * @returns Promise
 */
export const getUserInfo = () => {
  return post('auth/getUserInfo');
};



